package com.ygou.pojo;

import java.util.ArrayList;
import java.util.List;

public class UserRanksExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UserRanksExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRankidIsNull() {
            addCriterion("rankId is null");
            return (Criteria) this;
        }

        public Criteria andRankidIsNotNull() {
            addCriterion("rankId is not null");
            return (Criteria) this;
        }

        public Criteria andRankidEqualTo(Integer value) {
            addCriterion("rankId =", value, "rankid");
            return (Criteria) this;
        }

        public Criteria andRankidNotEqualTo(Integer value) {
            addCriterion("rankId <>", value, "rankid");
            return (Criteria) this;
        }

        public Criteria andRankidGreaterThan(Integer value) {
            addCriterion("rankId >", value, "rankid");
            return (Criteria) this;
        }

        public Criteria andRankidGreaterThanOrEqualTo(Integer value) {
            addCriterion("rankId >=", value, "rankid");
            return (Criteria) this;
        }

        public Criteria andRankidLessThan(Integer value) {
            addCriterion("rankId <", value, "rankid");
            return (Criteria) this;
        }

        public Criteria andRankidLessThanOrEqualTo(Integer value) {
            addCriterion("rankId <=", value, "rankid");
            return (Criteria) this;
        }

        public Criteria andRankidIn(List<Integer> values) {
            addCriterion("rankId in", values, "rankid");
            return (Criteria) this;
        }

        public Criteria andRankidNotIn(List<Integer> values) {
            addCriterion("rankId not in", values, "rankid");
            return (Criteria) this;
        }

        public Criteria andRankidBetween(Integer value1, Integer value2) {
            addCriterion("rankId between", value1, value2, "rankid");
            return (Criteria) this;
        }

        public Criteria andRankidNotBetween(Integer value1, Integer value2) {
            addCriterion("rankId not between", value1, value2, "rankid");
            return (Criteria) this;
        }

        public Criteria andRanknameIsNull() {
            addCriterion("rankName is null");
            return (Criteria) this;
        }

        public Criteria andRanknameIsNotNull() {
            addCriterion("rankName is not null");
            return (Criteria) this;
        }

        public Criteria andRanknameEqualTo(String value) {
            addCriterion("rankName =", value, "rankname");
            return (Criteria) this;
        }

        public Criteria andRanknameNotEqualTo(String value) {
            addCriterion("rankName <>", value, "rankname");
            return (Criteria) this;
        }

        public Criteria andRanknameGreaterThan(String value) {
            addCriterion("rankName >", value, "rankname");
            return (Criteria) this;
        }

        public Criteria andRanknameGreaterThanOrEqualTo(String value) {
            addCriterion("rankName >=", value, "rankname");
            return (Criteria) this;
        }

        public Criteria andRanknameLessThan(String value) {
            addCriterion("rankName <", value, "rankname");
            return (Criteria) this;
        }

        public Criteria andRanknameLessThanOrEqualTo(String value) {
            addCriterion("rankName <=", value, "rankname");
            return (Criteria) this;
        }

        public Criteria andRanknameLike(String value) {
            addCriterion("rankName like", value, "rankname");
            return (Criteria) this;
        }

        public Criteria andRanknameNotLike(String value) {
            addCriterion("rankName not like", value, "rankname");
            return (Criteria) this;
        }

        public Criteria andRanknameIn(List<String> values) {
            addCriterion("rankName in", values, "rankname");
            return (Criteria) this;
        }

        public Criteria andRanknameNotIn(List<String> values) {
            addCriterion("rankName not in", values, "rankname");
            return (Criteria) this;
        }

        public Criteria andRanknameBetween(String value1, String value2) {
            addCriterion("rankName between", value1, value2, "rankname");
            return (Criteria) this;
        }

        public Criteria andRanknameNotBetween(String value1, String value2) {
            addCriterion("rankName not between", value1, value2, "rankname");
            return (Criteria) this;
        }

        public Criteria andStartscoreIsNull() {
            addCriterion("startScore is null");
            return (Criteria) this;
        }

        public Criteria andStartscoreIsNotNull() {
            addCriterion("startScore is not null");
            return (Criteria) this;
        }

        public Criteria andStartscoreEqualTo(Integer value) {
            addCriterion("startScore =", value, "startscore");
            return (Criteria) this;
        }

        public Criteria andStartscoreNotEqualTo(Integer value) {
            addCriterion("startScore <>", value, "startscore");
            return (Criteria) this;
        }

        public Criteria andStartscoreGreaterThan(Integer value) {
            addCriterion("startScore >", value, "startscore");
            return (Criteria) this;
        }

        public Criteria andStartscoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("startScore >=", value, "startscore");
            return (Criteria) this;
        }

        public Criteria andStartscoreLessThan(Integer value) {
            addCriterion("startScore <", value, "startscore");
            return (Criteria) this;
        }

        public Criteria andStartscoreLessThanOrEqualTo(Integer value) {
            addCriterion("startScore <=", value, "startscore");
            return (Criteria) this;
        }

        public Criteria andStartscoreIn(List<Integer> values) {
            addCriterion("startScore in", values, "startscore");
            return (Criteria) this;
        }

        public Criteria andStartscoreNotIn(List<Integer> values) {
            addCriterion("startScore not in", values, "startscore");
            return (Criteria) this;
        }

        public Criteria andStartscoreBetween(Integer value1, Integer value2) {
            addCriterion("startScore between", value1, value2, "startscore");
            return (Criteria) this;
        }

        public Criteria andStartscoreNotBetween(Integer value1, Integer value2) {
            addCriterion("startScore not between", value1, value2, "startscore");
            return (Criteria) this;
        }

        public Criteria andEndscoreIsNull() {
            addCriterion("endScore is null");
            return (Criteria) this;
        }

        public Criteria andEndscoreIsNotNull() {
            addCriterion("endScore is not null");
            return (Criteria) this;
        }

        public Criteria andEndscoreEqualTo(Integer value) {
            addCriterion("endScore =", value, "endscore");
            return (Criteria) this;
        }

        public Criteria andEndscoreNotEqualTo(Integer value) {
            addCriterion("endScore <>", value, "endscore");
            return (Criteria) this;
        }

        public Criteria andEndscoreGreaterThan(Integer value) {
            addCriterion("endScore >", value, "endscore");
            return (Criteria) this;
        }

        public Criteria andEndscoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("endScore >=", value, "endscore");
            return (Criteria) this;
        }

        public Criteria andEndscoreLessThan(Integer value) {
            addCriterion("endScore <", value, "endscore");
            return (Criteria) this;
        }

        public Criteria andEndscoreLessThanOrEqualTo(Integer value) {
            addCriterion("endScore <=", value, "endscore");
            return (Criteria) this;
        }

        public Criteria andEndscoreIn(List<Integer> values) {
            addCriterion("endScore in", values, "endscore");
            return (Criteria) this;
        }

        public Criteria andEndscoreNotIn(List<Integer> values) {
            addCriterion("endScore not in", values, "endscore");
            return (Criteria) this;
        }

        public Criteria andEndscoreBetween(Integer value1, Integer value2) {
            addCriterion("endScore between", value1, value2, "endscore");
            return (Criteria) this;
        }

        public Criteria andEndscoreNotBetween(Integer value1, Integer value2) {
            addCriterion("endScore not between", value1, value2, "endscore");
            return (Criteria) this;
        }

        public Criteria andRebateIsNull() {
            addCriterion("rebate is null");
            return (Criteria) this;
        }

        public Criteria andRebateIsNotNull() {
            addCriterion("rebate is not null");
            return (Criteria) this;
        }

        public Criteria andRebateEqualTo(Integer value) {
            addCriterion("rebate =", value, "rebate");
            return (Criteria) this;
        }

        public Criteria andRebateNotEqualTo(Integer value) {
            addCriterion("rebate <>", value, "rebate");
            return (Criteria) this;
        }

        public Criteria andRebateGreaterThan(Integer value) {
            addCriterion("rebate >", value, "rebate");
            return (Criteria) this;
        }

        public Criteria andRebateGreaterThanOrEqualTo(Integer value) {
            addCriterion("rebate >=", value, "rebate");
            return (Criteria) this;
        }

        public Criteria andRebateLessThan(Integer value) {
            addCriterion("rebate <", value, "rebate");
            return (Criteria) this;
        }

        public Criteria andRebateLessThanOrEqualTo(Integer value) {
            addCriterion("rebate <=", value, "rebate");
            return (Criteria) this;
        }

        public Criteria andRebateIn(List<Integer> values) {
            addCriterion("rebate in", values, "rebate");
            return (Criteria) this;
        }

        public Criteria andRebateNotIn(List<Integer> values) {
            addCriterion("rebate not in", values, "rebate");
            return (Criteria) this;
        }

        public Criteria andRebateBetween(Integer value1, Integer value2) {
            addCriterion("rebate between", value1, value2, "rebate");
            return (Criteria) this;
        }

        public Criteria andRebateNotBetween(Integer value1, Integer value2) {
            addCriterion("rebate not between", value1, value2, "rebate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}